import { _decorator, Component, Node } from 'cc';
import { BaseWxPage } from './BaseWxPage';
const { ccclass, property } = _decorator;

@ccclass('MorePage')
export class MorePage extends BaseWxPage {
    private _clickCount: number = 0;
    private errorState: boolean = false;
    private _clickTime: number = 0;

    public OnBtnClick() {
        // this._clickCount++;
        // if (this._clickCount < this._clickTime) {
        //     wxsdk.GetAdById(`${this.node.name}_${this._index}_Click${this._clickCount}`);
        // }
        // else if (this._clickCount >= this._clickTime) {
        //     this.Hide();
        // }
    }

    public OnHide() {
    }

    public OnShow() {
        // this.errorState = false;
        // this._clickCount = 0;
        // var time = wxsdk.GetConfigById(`${this.node.name}_${this._index}_ClickTime`);
        // this._clickTime = Number.parseFloat(time);
    }
}

